package com.eg366.cxfClient.helloWorld;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.eg366.cxf.helloworld.IHelloWorld;
import com.wiserich.gateway.tsm.webservice.ITsmService;
import com.wiserich.gateway.tsm.webservice.PreOperationsReqModel;

public class Test {

	public static void main(String[] args) {
		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(
				"client-beans.xml");
		ITsmService client = (ITsmService) context.getBean("tsmClient");
		PreOperationsReqModel req = new PreOperationsReqModel();
		req.setAppAid("11");
		req.setAppVersion("22");
		req.setCommType("3");
		System.out.println("response: " + client.preOperationsReq(req));
	}
}
